<div class="<?php echo $include_file;?>">
	<table border="1">
		<tr>
			<td colspan="10"><h3 style="font-size: 20px;">读者[<?php echo $readerinfo['name']?>]的信息:</h3></td>
		</tr>
		<tr>
			<td>读者姓名</td><td><input type="text" value="<?php echo $readerinfo['name']?>" disabled="true"/></td>
			<td>性别</td><td><input type="text" value="<?php echo $readerinfo['sex']?>" disabled="true"/></td>
			<td>条形码</td><td><input type="text" value="<?php echo $readerinfo['barcode']?>" disabled="true"/></td>
			<td>读者类型</td><td><input type="text" value="<?php echo $readerinfo['typename']?>" disabled="true"/></td>
			<td>生日</td><td><input type="text" value="<?php echo $readerinfo['birthday']?>" disabled="true"/></td>
		</tr>
		<tr>
			<td><?php echo $readerinfo['paperType']?></td>
			<td><input type="text" value="<?php echo $readerinfo['paperNO']?>" disabled="true"/></td>
			<td>电话</td><td><input type="text" value="<?php echo $readerinfo['tel']?>" disabled="true"/></td>
			<td>邮箱</td><td><input type="text" value="<?php echo $readerinfo['email']?>" disabled="true"/></td>
			<td>创建时间</td><td><input type="text" value="<?php echo $readerinfo['createDate']?>" disabled="true"/></td>
			<td>可借数量</td><td><input type="text" value="<?php echo $readerinfo['number']?>" disabled="true"/></td>
			
		</tr>
	</table>
	<br />
	<form action="index.php?c=borrow&a=selectBorrow" method="post">
		请输入图书条形码:<input type="number" value="" name="bookbarcode"/>
		<input type="hidden" name="barcode" value="<?php echo $readerinfo['barcode']?>" />
		<input type="submit" value="查询/借阅" />
	</form>
	<br />
	<table border="1" width="800">
		<tr>
			<td colspan="7"><h3 style="font-size: 20px;">读者[<?php echo $readerinfo['name']?>]的借阅信息:</h3></td>
		</tr>
		<tr>
			<th>姓名</th>
			<th>书名</th>
			<th>借阅时间</th>
			<th>归还时间</th>
			<th>是否归还</th>
			<th>操作员</th>
			<th>归还</th>
		</tr>
		<?php foreach($borrowinfos as $borrow):?>
		<tr>
			<td><?php echo $borrow['name']?></td>
			<td><?php echo $borrow['bookname']?></td>
			<td><?php echo $borrow['borrowTime']?></td>
			<td><?php echo $borrow['backTime']?></td>
			<td><?php echo $borrow['ifback']==1?"已归还":"未归还"?></td>
			<td><?php echo $borrow['operator']?></td>
			<td><form action="index.php?c=borrow&a=backbook" method="post">
					<input type="hidden" name="readerbarcode" value="<?php echo $readerinfo['barcode']?>" />
					<input type="hidden" name="id" value="<?php echo $borrow['id']?>" />
					<input type="submit" value="归还" onclick="JavaScript:return confirm('确定要归还该图书吗?')"/>
				</form></td>
		</tr>
		<?php endforeach;?>
	</table>
	<p></p>
</div>